package com.org.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.bean.setting.RegionInfo;
import com.org.dao.setting.RegionInfoMapper;
import com.org.service.RegionService;
@Service("regionService")
public class RegionServiceimpl implements RegionService {
    
	@Autowired
	private RegionInfoMapper regionInfoMapper;
	@Override
	public List<RegionInfo> findAll() {
		// TODO Auto-generated method stub
		return regionInfoMapper.findAll();
	}

	@Override
	public List<RegionInfo> findById(int regionId) {
		// TODO Auto-generated method stub
		return regionInfoMapper.findById(regionId);
	}

	@Override
	public boolean addRegion(RegionInfo regionInfo) {
		// TODO Auto-generated method stub
		return regionInfoMapper.addRegion(regionInfo);
	}

	@Override
	public boolean deleteRegion(int regionId) {
		// TODO Auto-generated method stub
		return regionInfoMapper.deleteRegion(regionId);
	}

	@Override
	public boolean updateRegion(RegionInfo regionInfo) {
		// TODO Auto-generated method stub
		return regionInfoMapper.updateRegion(regionInfo);
	}

	@Override
	public List<RegionInfo> findByName(String regionName) {
		// TODO Auto-generated method stub
		return regionInfoMapper.findByName(regionName);
	}

}
